#!/bin/sh

# LiveSplit initialization script

# APP variables

export WINEPATH="/home/akko/Wine/Versions/tkg-3.21-x86_64"
export WINEPREFIX="$HOME/Wine/Games/gta-sa"
export APPPATH="$HOME/Wine/Tools/LiveSplit/drive_c/Program Files/LiveSplit" &&
#export APPPATH="$WINEPREFIX/drive_c/Program Files/LiveSplit" &&
export APPEXE="LiveSplit.exe" &&

# WINE variables
export PATH=$WINEPATH"/bin" &&
export WINELOADER=$WINEPATH"/bin/wine64" &&
export WINESERVER=$WINEPATH"/bin/wineserver" &&
export WINEDLLPATH=$WINEPATH"/lib/wine/fakedlls" &&
export WINEDEBUG="-all" &&
export LD_LIBRARY_PATH=$WINEPATH"/lib" &&

# Execute app

cd "$APPPATH" &&
$WINELOADER "$APPPATH"/"$APPEXE"
